<?php
class TCore extends CApplicationComponent {
    private $config = 'main';

    public function init() {
        parent::init();

        /* load config file in TCore */
        $config = require_once(dirname(__FILE__) . "/config/{$this->config}.php");
        foreach ($config['autoload'] as $autoLoad) {
            Yii::import($autoLoad, true);
        }
    }
}